/*

BlackRabbit - OpenSource IDE.
@author Edward Sarkisyan (edward.sarkisyan@gmail.com)
Use LGPL (http://www.gnu.org/copyleft/lesser.html)

*/

#ifndef PLUGINSCROLLAREAWIDGET_H
#define PLUGINSCROLLAREAWIDGET_H

#include <QtGui/QWidget>
#include "../plugininterfaces.h"

namespace Ui {
    class PluginScrollAreaWidget;
}

class PluginScrollAreaWidget : public QWidget {
    Q_OBJECT
public:
    PluginScrollAreaWidget(QWidget *parent = 0, Plugin* pluginObject =0);
    ~PluginScrollAreaWidget();
    void setAddButtonEnabled(bool);
    QWidget* resultWidget();
    void setPluginIcon(QPixmap);
protected:
    void changeEvent(QEvent *e);

private:
    Ui::PluginScrollAreaWidget *m_ui;
    Plugin* m_plugin;

private slots:
    void on_addBttn_clicked();
public:
signals:
    void addBttnClicked(Plugin*);
};

#endif // PLUGINSCROLLAREAWIDGET_H
